/*
** common.h for zappy in /home/morgan_t/Documents/svn-for-my-proj/zappy/server/inc
** 
** Made by thomas morgant
** Login   <morgan_t@epitech.net>
** 
** Started on  Thu Jul  5 12:23:30 2012 thomas morgant
** Last update Thu Jul 12 16:05:57 2012 thomas morgant
*/

#ifndef _COMMON_H_
# define _COMMON_H_

#include <sys/socket.h>
#include <sys/types.h>
#include <sys/select.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <time.h>

void	*xmalloc(size_t size);
void	xbind(int s, struct sockaddr_in addr, socklen_t addrlen);
int	xlisten(int s, int backlog);
int	xselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
int	xsocket(int domain, int type, int protocol);

#endif
